package com.gxar.marketdelivery.infra.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@TableName("market_delivery_res_slot")
public class DeliveryResSlotEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String FIELD_STATUS = "status";

    public static final String FIELD_RES_SLOT_KEY = "res_slot_key";

    public static final String FIELD_ID = "id";

    public static final String FIELD_RES_SLOT_STATUS = "res_slot_status";

    public static final String FIELD_RES_SLOT_NAME = "res_slot_name";

    public static final String FIELD_CREATOR = "creator";

    public static final String FIELD_GMT_MODIFY = "gmt_modify";
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 资源唯一key
     */
    private String resSlotKey;

    /**
     * 资源位名称
     */
    private String resSlotName;

    /**
     * 资源位描述
     */
    private String description;

    /**
     * 资源位描述图片
     */
    private String descriptionImage;

    /**
     * 资源位标识
     */
    private String resSlotTag;

    /**
     * 资源位状态(0:关闭， 1:开启)
     */
    private Integer resSlotStatus;

    /**
     * 控制资源的展示数量
     */
    private Integer resLimitCount;

    /**
     * 资源位静态schema
     */
    private String resSlotStaticSchema;

    /**
     * 投放计划静态schema
     */
    private String planStaticSchema;

    /**
     * 有效状态(0:无效，1:有效)
     */
    private Integer status = 1;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 修改人
     */
    private String modifier;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modify", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModify;
}
